package com.ceuer.springboot;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:demo.properties")
@Data
public class DemoConfig {
	@Value("${demo.name}")
	private String name;
	
	@Value("${demo.age}")
	private Integer age;

}